package business;

/**
 * Created by aleks_000 on 26/12/13.
 */
public class BaseManager implements Manager {

    // represent a class to work in background
    private class BackgroundWorker implements Runnable {

        @Override
        public void run() {

        }
    }


    // working thread
    private Thread workingThread;
    // broker to get access to elements
    private final Broker broker;
    // status flag
    private boolean isWorking;


    @Override
    public Broker getBroker() {
        return broker;
    }

    public boolean isWorking() {
        return isWorking;
    }

    public BaseManager(Broker broker) {
        if (broker == null) {
            throw new NullPointerException();
        }
        this.broker = broker;

        this.workingThread = new Thread(new BackgroundWorker());

        this.isWorking = false;
    }



}
